<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    
    <title>Linux常用命令 | 流沙 | subtitle</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="">
    <meta name="description" content="sedsed [-hnV][-e&amp;lt;script&amp;gt;][-f&amp;lt;script文件&amp;gt;][文本文件]12345-e&amp;lt;script&amp;gt;或--expression=&amp;lt;script&amp;gt; 以选项中指定的script来处理输入的文本文件。-f&amp;lt;script文件&amp;gt;或--file=&amp;lt;script文件&amp;gt; 以选项中指定的script文件来处理输入的文本文件。">
<meta name="keywords" content="关键字">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux常用命令">
<meta property="og:url" content="https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/index.html">
<meta property="og:site_name" content="流沙">
<meta property="og:description" content="sedsed [-hnV][-e&amp;lt;script&amp;gt;][-f&amp;lt;script文件&amp;gt;][文本文件]12345-e&amp;lt;script&amp;gt;或--expression=&amp;lt;script&amp;gt; 以选项中指定的script来处理输入的文本文件。-f&amp;lt;script文件&amp;gt;或--file=&amp;lt;script文件&amp;gt; 以选项中指定的script文件来处理输入的文本文件。">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2018-11-01T06:32:56.862Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Linux常用命令">
<meta name="twitter:description" content="sedsed [-hnV][-e&amp;lt;script&amp;gt;][-f&amp;lt;script文件&amp;gt;][文本文件]12345-e&amp;lt;script&amp;gt;或--expression=&amp;lt;script&amp;gt; 以选项中指定的script来处理输入的文本文件。-f&amp;lt;script文件&amp;gt;或--file=&amp;lt;script文件&amp;gt; 以选项中指定的script文件来处理输入的文本文件。">
    
        <link rel="alternate" type="application/atom+xml" title="流沙" href="/hexoblog/atom.xml">
    
    <link rel="shortcut icon" href="/hexoblog/favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background:#3F51B5">
      <div class="brand">
        <a href="/hexoblog/" class="avatar waves-effect waves-circle waves-light">
          <img src="/hexoblog/img/avatar.jpeg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">Wang</h5>
          <a href="mailto:919767736@qq.com" title="919767736@qq.com" class="mail">919767736@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/hexoblog/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/hexoblog/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                归档
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/hexoblog/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                标签
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/hexoblog/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                分类
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://www.weibo.com" target="_blank" >
                <i class="icon icon-lg icon-weibo"></i>
                微博
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://ftp.wmgblog.pw"  >
                <i class="icon icon-lg icon-link"></i>
                FTP
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Linux常用命令</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
		
		 
		  <a href="/hexoblog/atom.xml" target="_blank" class="header-icon waves-effect waves-circle waves-light rss" id="menuShare">
           <i class="icon icon-lg icon-rss"></i>
        </a>
            
			
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Linux常用命令</h1>
        <h5 class="subtitle">
            
                <time datetime="2018-08-09T06:44:24.000Z" itemprop="datePublished" class="page-time">
  2018-08-09
</time>


            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap post-toc-shrink" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#sed"><span class="post-toc-number">1.</span> <span class="post-toc-text">sed</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#awk"><span class="post-toc-number">2.</span> <span class="post-toc-text">awk</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#find"><span class="post-toc-number">3.</span> <span class="post-toc-text">find</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#kill"><span class="post-toc-number">4.</span> <span class="post-toc-text">kill</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#ls"><span class="post-toc-number">5.</span> <span class="post-toc-text">ls</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#pwd"><span class="post-toc-number">6.</span> <span class="post-toc-text">pwd</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#cp-scp"><span class="post-toc-number">7.</span> <span class="post-toc-text">cp scp</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#mkdir"><span class="post-toc-number">8.</span> <span class="post-toc-text">mkdir</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#rmdir"><span class="post-toc-number">9.</span> <span class="post-toc-text">rmdir</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#mv"><span class="post-toc-number">10.</span> <span class="post-toc-text">mv</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#su"><span class="post-toc-number">11.</span> <span class="post-toc-text">su</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#chmod"><span class="post-toc-number">12.</span> <span class="post-toc-text">chmod</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#tar"><span class="post-toc-number">13.</span> <span class="post-toc-text">tar</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#head"><span class="post-toc-number">14.</span> <span class="post-toc-text">head</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#tail"><span class="post-toc-number">15.</span> <span class="post-toc-text">tail</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#sudo"><span class="post-toc-number">16.</span> <span class="post-toc-text">sudo</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#netstat"><span class="post-toc-number">17.</span> <span class="post-toc-text">netstat</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#lsof"><span class="post-toc-number">18.</span> <span class="post-toc-text">lsof</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#tree"><span class="post-toc-number">19.</span> <span class="post-toc-text">tree</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#wget-curl"><span class="post-toc-number">20.</span> <span class="post-toc-text">wget curl</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#ping-ifconfig"><span class="post-toc-number">21.</span> <span class="post-toc-text">ping ifconfig</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#ssh"><span class="post-toc-number">22.</span> <span class="post-toc-text">ssh</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#echo-cat"><span class="post-toc-number">23.</span> <span class="post-toc-text">echo cat</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#git-mvn"><span class="post-toc-number">24.</span> <span class="post-toc-text">git mvn</span></a></li></ol>
        </nav>
    </aside>


<article id="post-linuxbashcode"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Linux常用命令</h1>
        <div class="post-meta">
            <time class="post-time" title="2018-08-09 14:44:24" datetime="2018-08-09T06:44:24.000Z"  itemprop="datePublished">2018-08-09</time>

            


            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h2 id="sed"><a href="#sed" class="headerlink" title="sed"></a>sed</h2><p><code>sed [-hnV][-e&lt;script&gt;][-f&lt;script文件&gt;][文本文件]</code><br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">-e&lt;script&gt;或--expression=&lt;script&gt; 以选项中指定的script来处理输入的文本文件。</span><br><span class="line">-f&lt;script文件&gt;或--file=&lt;script文件&gt; 以选项中指定的script文件来处理输入的文本文件。</span><br><span class="line">-h或--help 显示帮助。</span><br><span class="line">-n或--quiet或--silent 仅显示script处理后的结果。</span><br><span class="line">-V或--version 显示版本信息。</span><br></pre></td></tr></table></figure></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">a ：新增， a 的后面可以接字串，而这些字串会在新的一行出现(目前的下一行)～</span><br><span class="line">c ：取代， c 的后面可以接字串，这些字串可以取代 n1,n2 之间的行！</span><br><span class="line">d ：删除，因为是删除啊，所以 d 后面通常不接任何咚咚；</span><br><span class="line">i ：插入， i 的后面可以接字串，而这些字串会在新的一行出现(目前的上一行)；</span><br><span class="line">p ：打印，亦即将某个选择的数据印出。通常 p 会与参数 sed -n 一起运行～</span><br><span class="line">s ：取代，可以直接进行取代的工作哩！通常这个 s 的动作可以搭配正规表示法！例如 1,20s/old/new/g 就是啦！</span><br></pre></td></tr></table></figure>
<p><code>sed -e 4a\newLine testfile</code>第四行后添加一行newline</p>
<p><code>sed &#39;2,5d&#39;</code> 2~5 行删除</p>
<p><code>sed -e &#39;3,$d&#39; -e &#39;s/bash/blueshell/&#39;</code> 删除第三行到末尾的数据，并把bash替换为blueshell</p>
<h2 id="awk"><a href="#awk" class="headerlink" title="awk"></a>awk</h2><p><code>awk &#39;BEGIN{ print &quot;start&quot; } pattern{ commands } END{ print &quot;end&quot; }&#39; file</code></p>
<p>第一步：执行<code>BEGIN{ commands }</code>语句块中的语句；</p>
<p>第二步：从文件或标准输入(stdin)读取一行，然后执行<code>pattern{ commands }</code>语句块，它逐行扫描文件，从第一行到最后一行重复这个过程，直到文件全部被读取完毕。</p>
<p>第三步：当读至输入流末尾时，执行<code>END{ commands }</code>语句块。</p>
<h2 id="find"><a href="#find" class="headerlink" title="find"></a>find</h2><p><code>find / -name filename.txt</code> 根据名称查找/目录下的<code>filename.txt</code>文件。<br><code>find . -name &quot;*.xml&quot;</code>递归查找所有的<code>xml</code>文件<br><code>find . -name &quot;*.xml&quot; |xargs grep &quot;hello world&quot;</code>递归查找所有文件内容中包含hello world的xml文件<br><code>grep -H &#39;spring&#39; *.xml</code> 查找所以有的包含spring的xml文件<br><code>find ./ -size 0 | xargs rm -f &amp;</code> 删除文件大小为零的文件<br><code>ls -l | grep &#39;.jar&#39;</code> 查找当前目录中的所有jar文件<br><code>grep &#39;test&#39; d*</code>显示所有以d开头的文件中包含test的行。<br><code>grep &#39;test&#39; aa bb cc</code> 显示在aa，bb，cc文件中匹配test的行。<br><code>grep &#39;[a-z]\{5\}&#39; aa</code> 显示所有包含每个字符串至少有5个连续小写字符的字符串的行。</p>
<p>##　ps<br><code>ps –ef|grep tomcat</code>查看所有有关tomcat的进程<br><code>ps -ef|grep --color java</code> 高亮要查询的关键字<br><code>ps aux|grep java</code>查看java进程<br><code>ps aux</code> 查看所有进程</p>
<h2 id="kill"><a href="#kill" class="headerlink" title="kill"></a>kill</h2><p><code>kill -9 19979</code> 终止线程号位19979的进程</p>
<h2 id="ls"><a href="#ls" class="headerlink" title="ls"></a>ls</h2><p><code>ls -al</code></p>
<h2 id="pwd"><a href="#pwd" class="headerlink" title="pwd"></a>pwd</h2><p><code>pwd</code></p>
<h2 id="cp-scp"><a href="#cp-scp" class="headerlink" title="cp scp"></a>cp scp</h2><p><code>cp source dest</code> 复制文件<br><code>cp -r sourceFolder targetFolder</code> 递归复制整个文件夹<br><code>scp sourecFile romoteUserName@remoteIp:remoteAddr</code> 远程拷贝</p>
<h2 id="mkdir"><a href="#mkdir" class="headerlink" title="mkdir"></a>mkdir</h2><p><code>mkdir newfolder</code></p>
<h2 id="rmdir"><a href="#rmdir" class="headerlink" title="rmdir"></a>rmdir</h2><p><code>rmdir deleteEmptyFolder</code> 删除空目录 rm -rf deleteFile 递归删除目录中所有内容</p>
<h2 id="mv"><a href="#mv" class="headerlink" title="mv"></a>mv</h2><p><code>mv /temp/movefile /targetFolder</code><br><code>mv oldNameFile newNameFile</code></p>
<h2 id="su"><a href="#su" class="headerlink" title="su"></a>su</h2><p><code>su -username</code></p>
<h2 id="chmod"><a href="#chmod" class="headerlink" title="chmod"></a>chmod</h2><p><code>chmod 777 file.java //file.java</code>的权限-rwxrwxrwx，r表示读、w表示写、x表示可执行</p>
<h2 id="tar"><a href="#tar" class="headerlink" title="tar"></a>tar</h2><p><code>tar -czf test.tar.gz /test1 /test2</code></p>
<p>列出压缩文件列表<code>tar -tzf test.tar.gz</code></p>
<p>解压文件<code>tar -xvzf test.tar.gz</code></p>
<h2 id="head"><a href="#head" class="headerlink" title="head"></a>head</h2><p>查看文件头10行<code>head -n 10 example.txt</code></p>
<h2 id="tail"><a href="#tail" class="headerlink" title="tail"></a>tail</h2><p>查看文件尾10行<br><code>tail -n 10 example.txt</code></p>
<p>查看日志类型文件<br><code>tail -f exmaple.log</code>//这个命令会自动显示新增内容，屏幕只显示10行内容的（可设置）。</p>
<h2 id="sudo"><a href="#sudo" class="headerlink" title="sudo"></a>sudo</h2><p><code>sudo rm a.txt</code>使用管理员身份删除文件</p>
<h2 id="netstat"><a href="#netstat" class="headerlink" title="netstat"></a>netstat</h2><p>查看端口占用情况<br><code>netstat -tln | grep 8080</code>查看端口8080的使用情况</p>
<h2 id="lsof"><a href="#lsof" class="headerlink" title="lsof"></a>lsof</h2><p>查看端口属于哪个程序<br><code>lsof -i :8080</code></p>
<h2 id="tree"><a href="#tree" class="headerlink" title="tree"></a>tree</h2><p><code>tree a</code></p>
<h2 id="wget-curl"><a href="#wget-curl" class="headerlink" title="wget curl"></a>wget curl</h2><p><code>wget http://file.tgz</code> mac下安装wget命令</p>
<p><code>curl http://file.tgz</code></p>
<h2 id="ping-ifconfig"><a href="#ping-ifconfig" class="headerlink" title="ping ifconfig"></a>ping ifconfig</h2><p><code>ping www.just-ping.com</code></p>
<h2 id="ssh"><a href="#ssh" class="headerlink" title="ssh"></a>ssh</h2><p><code>ssh userName@ip</code></p>
<h2 id="echo-cat"><a href="#echo-cat" class="headerlink" title="echo cat"></a>echo cat</h2><p><code>echo $JAVA_HOME</code> 打印java home环境变量的值</p>
<h2 id="git-mvn"><a href="#git-mvn" class="headerlink" title="git mvn"></a>git mvn</h2>
        </div>

        <blockquote class="post-copyright">
    
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2018-11-01T06:32:56.862Z" itemprop="dateUpdated">2018-11-01 14:32:56</time>
</span><br>


        
        作者留言区
        
    </div>
    
    <footer>
        <a href="https://gitwmg.gitee.io/hexoblog">
            <img src="/hexoblog/img/avatar.jpeg" alt="Wang">
            Wang
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            

            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/&title=《Linux常用命令》 — 流沙&pic=https://gitwmg.gitee.io/hexoblog/img/avatar.jpeg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/&title=《Linux常用命令》 — 流沙&source=描述" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Linux常用命令》 — 流沙&url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/&via=https://gitwmg.gitee.io/hexoblog" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/hexoblog/2018/08/09/Proxy/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">JDK动态代理</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/hexoblog/2018/08/09/synchronized/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">synchronized</h4>
      </a>
    </div>
  
</nav>



    

















</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        谢谢~
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/hexoblog/img/wechat.jpg" alt="打赏二维码">
        </div>
        
        <label class="reward-toggle">
            <input id="rewardToggle" type="checkbox" class="reward-toggle-check"
                data-wechat="/hexoblog/img/wechat.jpg" data-alipay="/hexoblog/img/alipay.jpg">
            <div class="reward-toggle-ctrol">
                <span class="reward-toggle-item wechat">微信</span>
                <span class="reward-toggle-label"></span>
                <span class="reward-toggle-item alipay">支付宝</span>
            </div>
        </label>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="bottom">
        <p><span>Wang &copy; 2017 - 2018</span>
            <span>
                
            </span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/&title=《Linux常用命令》 — 流沙&pic=https://gitwmg.gitee.io/hexoblog/img/avatar.jpeg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/&title=《Linux常用命令》 — 流沙&source=描述" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Linux常用命令》 — 流沙&url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/&via=https://gitwmg.gitee.io/hexoblog" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://gitwmg.gitee.io/hexoblog/2018/08/09/linuxbashcode/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/hexoblog/', SHARE: true, REWARD: true };


</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = '去哪里了！';
            clearTimeout(titleTime);
        } else {
            document.title = '(つェ⊂)咦!又好了!';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
